<?php defined('SYSPATH') or die('No direct script access.');

// Статьи
class Controller_Ajax_Articles extends Controller_Base
{
	public function action_get_comment()
    {
        if($this->request->is_ajax())
        {
            $comment_id = $this->request->post('comment_id');
            
            $comment = $this->article_comment_model->get_comment($comment_id);
            
            $result = array(
                'success'  => true,
                'comment'  => $comment
            );
            
            header('Content-type: text/json');
            echo json_encode($result);
        }
        die();
    }

} // End Ajax_Articles
